/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 刘远望
 * Date: 2025-05-21
 * Time: 17:13
 */
public class Demo9 {
    public static void main(String[] args) {
        Thread thread = new Thread(() -> {
            System.out.println("hello thread");
        });

        thread.start();
        //一个实例不能同时开始两个线程，若开启多个线程必须创建多个实例
        //thread.start();

        //函数调用并不是来开启线程
        thread.run();
    }
}
